﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WCFMastering.Framework;
using WCFMastering.Contracts;

namespace WCFMastering.Client
{
    public class GenericDuplexServiceClient:DuplexClientBase<IDuplexService,IDuplexServiceCallback>, IDuplexService
    {
        #region Ctors

        public GenericDuplexServiceClient(IDuplexServiceCallback callback)
            : base(callback)
        { 
        }

        public GenericDuplexServiceClient(InstanceContext<IDuplexServiceCallback> context)
            : base(context)
        { 
        }

        // Other Constructors
        #endregion

        #region IDuplexService Members

        public void DoSomeThing()
        {

        }

        #endregion
    }

    public class GenericDuplexServiceCallback : IDuplexServiceCallback
    {
        #region IDuplexServiceCallback Members

        public void OnCallback()
        { 
        }

        #endregion
    }
}
